package practise.trackerpoc.shared;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;


@SuppressWarnings("serial")
public class MemberProp implements Serializable {
	public Long id;
	
	public String nameFirst;
	public String nameMiddle;
	public String nameLast;
	
	public String email1;
	public String email2;
	
	public PhoneProp phoneHome;
	public PhoneProp phoneOffice;
	public PhoneProp phoneMobile;
	public PhoneProp phoneAlternate;
		
	public String addressHome;
	public String addressOffice;
	
	public Date dob;
	
	public ArrayList<CenterProp> centers;
		
	public MemberProp() {
		// TODO Auto-generated constructor stub
	}
				
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("id = " + id + ", name = " + nameFirst + " " + nameMiddle + 
				" " + nameLast + ", email(s) = " + email1 + ", " + email2 +
				", phone(s) = " + phoneHome + ", " + phoneOffice + ", " + phoneMobile + " " + 
				", houseAddress = " + addressHome +
				" centers = [");
		
		if (null != centers) {
			for (CenterProp c : centers) {
				sb.append(c + ", ");
			}
		}
		sb.append("]");
		
		return sb.toString();
	}
}
